﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.ComponentModel;

namespace EngineLayer.Common
{
    public interface ISwitch
    {
        void Open();
        void Close();
    }

    public interface IEditable : IEditableObject
    {
        bool IsNew();
        bool IsEditing();
        bool IsEditable();
        bool IsDeleted();
        void Delete();
    }


    public interface ILibraryCollection<T> : IEnumerable<T>, IEnumerable
    {
        int Count { get; }

        void Add(T t);
        void Clear();
        bool Contains(T t);
        void Delete(T t);
        T Find(string value);
    }

    public enum ObjectStatus : byte
    {
      Original = 0,
      IsNew,
      IsEdited,
      IsDeleted,
      IsReadOnly
    }

}
